/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package queue.tester;

import queue.ArrayQueue;
import queue.NodeQueue;

/**
 *
 * @author pc
 */
public class TestNode {
      public static void main(String[] args) throws InterruptedException {
        boolean tmp;
        int cap;
        NodeQueue<Integer> a = new NodeQueue<Integer>();
        System.out.println(a.isEmpty());
        for (cap = 0; cap < 10000; cap++) {
           
            a.enqueue(cap);
            System.out.println(cap + "  " + a.front() + "  " + a.isEmpty());
        }

        for (cap = 0; cap < 10000; cap++) {

            tmp = (cap == a.front() ? true : false);

            System.out.println(cap + "  " + a.front() + "    " + a.dequeue() + "  " + tmp + "  " + a.isEmpty());
        }

        System.out.println(a.isEmpty());



    }
}
